AI SDK Kotlin
Toggle table of contents
0.3.0-alpha01
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk
/
ProviderToolFactory
Provider
Tool
Factory
class
ProviderToolFactory
<
TInput
,
TContext
>
(
id
:
String
,
inputSerializer
:
KSerializer
<
TInput
>
,
inputSchema
:
Schema
<
TInput
>
,
defaultDescription
:
String
=
"Provider tool "
)
Members
Constructors
Provider
Tool
Factory
Link copied to clipboard
constructor
(
id
:
String
,
inputSerializer
:
KSerializer
<
TInput
>
,
inputSchema
:
Schema
<
TInput
>
,
defaultDescription
:
String
=
"Provider tool "
)
Functions
create
Link copied to clipboard
fun
<
TOutput
>
create
(
options
:
ProviderToolFactoryOptions
<
TInput
,
TOutput
,
TContext
>
)
:
Tool
<
TInput
,
TOutput
,
TContext
>
invoke
Link copied to clipboard
operator
fun
<
TOutput
>
invoke
(
options
:
ProviderToolFactoryOptions
<
TInput
,
TOutput
,
TContext
>
)
:
Tool
<
TInput
,
TOutput
,
TContext
>